function T = static_g1_tt(T, y, x, params)
% function T = static_g1_tt(T, y, x, params)
%
% File created by Dynare Preprocessor from .mod file
%
% Inputs:
%   T         [#temp variables by 1]  double   vector of temporary terms to be filled by function
%   y         [M_.endo_nbr by 1]      double   vector of endogenous variables in declaration order
%   x         [M_.exo_nbr by 1]       double   vector of exogenous variables in declaration order
%   params    [M_.param_nbr by 1]     double   vector of parameter values in declaration order
%
% Output:
%   T         [#temp variables by 1]  double   vector of temporary terms
%

assert(length(T) >= 16);

T = P30ra.static_resid_tt(T, y, x, params);

T(11) = getPowerDeriv(y(2),1-y(10),1);
T(12) = (log(y(2))*T(11)+T(2)*1/y(2))/(y(10)-1)+T(11)/T(3);
T(13) = getPowerDeriv(y(2),(-y(10)),1);
T(14) = getPowerDeriv(y(3),params(4),1);
T(15) = getPowerDeriv(y(5),1-params(4),1);
T(16) = ((y(10)-1)*log(y(2))*T(2)*(-log(y(2)))-T(2)*log(y(2)))/((y(10)-1)*(y(10)-1))+(T(3)*T(2)*(-log(y(2)))-(T(2)-1)*2*(y(10)-1))/(T(3)*T(3));

end
